<html>
<title>Google Discovery API Sample</title>
<body>
<h2>Instructions for the Google Discovery API Sample (<a
  href="http://goo.gl/ojuXq">http://goo.gl/ojuXq</a>)</h2>

<h3>Usage</h3>

Examples using <b><code>google discover</code></b>:

<pre><code>google discover buzz v1
google discover moderator v1</code></pre>

Examples using <b><code>google call</code></b>:

<pre><code>  google call discovery v0.2beta1 apis.get buzz v1
  google call buzz v1 activities.list @me @self --max-results 3 --alt json --prettyprint true
  echo {\"data\":{\"object\":{\"content\":\"Posting using Google command-line tool based on Discovery \(http://goo.gl/ojuXq\)\"}}} &gt; buzzpost.json && google call buzz v1 activities.insert @me buzzpost.json</code></pre>

<h3>Browse Online</h3>

<ul>
  <li><a
    href="http://code.google.com/p/google-api-java-client/source/browse?repo=samples#hg/discovery-sample">Browse
  Source</a>, or main file <a
    href="http://code.google.com/p/google-api-java-client/source/browse/discovery-sample/src/com/google/api/client/sample/discovery/DiscoverySample.java?repo=samples">DiscoverySample.java</a></li>
</ul>

<h3>Installation Instructions</h3>

<p><b>Prerequisites:</b> install <a href="http://java.com">Java 6</a>, <a
  href="http://mercurial.selenic.com/">Mercurial</a> and <a
  href="http://maven.apache.org/download.html">Maven</a>. You may need to set
your <code>JAVA_HOME</code>.</p>

<pre><code>cd <i>[someDirectory]</i>
hg clone https://samples.google-api-java-client.googlecode.com/hg/ google-api-java-client-samples
cd google-api-java-client-samples/discovery-sample
mvn assembly:assembly
alias google="<i>[someDirectory]</i>/google-api-java-client-samples/discovery-sample/google"</code></pre>

</body>
</html>
